package com.anlu.base;

public class MonitoringService {

    private final CircuitBreaker delayedService;
    private final CircuitBreaker quickService;

    public MonitoringService(CircuitBreaker delayedService, CircuitBreaker quickService) {
        this.delayedService = delayedService;
        this.quickService = quickService;
    }


    public String localResouceResponse(){
        return "Local Service is working";
    }


    public String delayedServiceResponse() throws RemoteServiceException {
        return delayedService.attemptRequest();
    }

}
